package org.magento.pages;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;



public class SearchResult extends Page {
	

	//Locators 
	@FindBy(xpath = "/descendant::div[@class='actions']/button[@class='button btn-cart']")
	public WebElement  addToCartButton;
		
	//Actions 
	public  ShoppingCart addProductToShoppingCart() {
		addToCartButton.click();
		return PageFactory.initElements(driver, ShoppingCart.class);
	}
	 
	
	//Asserts 
	
	
	// Auto-generated
	
	public SearchResult(WebDriver driver) {
		super(driver);
	}
	
	@Override
	public void open() {
	}

}
